Home

Operator Usage

Name

normalize

Description

normalize sp
normalize[t] sp
normalize the coefficients in sp such that they sum to 1, or t if specified
ie, the "currency" of the result will be either 1 or t
if applied to a sequence, apply normalize to each of the component superpositions


Examples

normalize (2|alpha> + 3|beta> + 5|gamma> + 7|delta>)
    0.117647|alpha> + 0.176471|beta> + 0.294118|gamma> + 0.411765|delta>

measure-currency normalize (2|alpha> + 3|beta> + 5|gamma> + 7|delta>)
    |number: 1>

normalize[100] (3|x> + |y> + 2|z>)
    50|x> + 16.666667|y> + 33.333333|z>

measure-currency normalize[100] (3|x> + |y> + 2|z>)
    |number: 100>


See also

Operator type

core normal, core compound